//
//  SongBookCell.m
//  GSG
//
//  Created by gaox on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SongBookCell.h"

@implementation SongBookCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.view = [[UIView alloc] init];
        [self.contentView addSubview:self.view];
//        self.view.alpha = 20;
//        self.view.backgroundColor = [UIColor colorWithWhite:0 alpha:0.3];
        [_view release];
        
        self.singer_nameLabel = [[UILabel alloc] init];
        [self.view addSubview:self.singer_nameLabel];
        [_singer_nameLabel release];
        

        
        self.song_nameLabel = [[UILabel alloc] init];
        [self.view addSubview:self.song_nameLabel];
        self.song_nameLabel.font = [UIFont systemFontOfSize:18];
        [_song_nameLabel release];
        
//        self.button = [UIButton buttonWithType:UIButtonTypeCustom];
//        self.button.layer.borderWidth = 1;
//        [self.button setTitle:@"收藏" forState:UIControlStateNormal];
//        [self.view addSubview:self.button];
        
        
//        self.button1 = [UIButton buttonWithType:UIButtonTypeCustom];
//        self.button1.layer.borderWidth = 1;
//        [self.button1 addTarget:self action:@selector(collect) forControlEvents:UIControlEventTouchUpInside];
//        [self.button1 setTitle:@"分享" forState:UIControlStateNormal];
//        [self.view addSubview:self.button1];
        
//        self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bujing.png"]];
        
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.view.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 100);
//    self.pic_urlView.frame = CGRectMake(5, 5, 90, 90);
    self.singer_nameLabel.frame = CGRectMake(60, 50, 300, 40);
    self.song_nameLabel.frame = CGRectMake(60, 10, 300, 40);
    
//    self.button.frame = CGRectMake(5, 30, 40, 40);
//    self.button1.frame = CGRectMake(330, 30, 40, 40);
    
}

-(void)collect{
    
NSLog(@"123");
}




@end
